package com.jhd.jiangxi.util;

import com.jhd.jiangxi.vo.RefDept;
import com.jhd.jiangxi.vo.StorageInfo;

import java.util.List;

public class DeptChoose {
    public static boolean isContain(List<RefDept> deptList,String deptName){
        if (deptList != null) {
            for (RefDept refDept : deptList) {
                if(refDept.getName().equals(deptName)){
                    return true;
                }
            }
        }
        return false;
    }
    public static boolean isStorageContain(List<StorageInfo> storageInfoList,String storageName){
        if(storageInfoList!=null){
            for (StorageInfo storageInfo : storageInfoList) {
                if(storageInfo.getName().equals(storageName)){
                    return true;
                }
            }
        }
        return false;
    }




}
